package user;

import book.Booklist;
import ioperation.IOperation;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 刘远望
 * Date: 2025-03-19
 * Time: 19:30
 */
public abstract class User {
    protected String name;
    protected IOperation[] iOperations;
    public User(String name) {

        this.name = name;
    }
    public abstract int menu();

    public void doIoperation(int choice, Booklist booklist){

        iOperations[choice].work(booklist);
    }
}


